package com.jz.netthings.engine;

import com.jy.faceValidate.utils.FaceValidateBase;
import com.jy.faceValidate.utils.FaceValidateUtils;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

public class SpringBootStartApplication extends SpringBootServletInitializer {

    private static FaceValidateBase f = FaceValidateUtils.faceV;//主要就是预加载人脸识别模块
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先用main方法执行的Application启动类
        return builder.sources(NetthingsEngineApplication.class);
    }
}